#include "land.hpp"

int Land::GetLandPrice(void)
{
    switch (type)
    {
    case LandTypeEmpty1:
        return 200 * (level + 1);
    case LandTypeEmpty2:
        return 500 * (level + 1);
    case LandTypeEmpty3:
        return 300 * (level + 1);

    default:
        return 0;
    }
}

int Land::GetEmptyLandPrice(void)
{
    switch (type)
    {
    case LandTypeEmpty1:
        return 200;
    case LandTypeEmpty2:
        return 500;
    case LandTypeEmpty3:
        return 300;

    default:
        return 0;
    }
}

void Land::Init(LandType_t t)
{
    type = t;
    owner = '\0';
    level = 0;
    barrier = false;
}